﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace IntelliTouchMix
{
    public partial class Internet : DevComponents.DotNetBar.Office2007RibbonForm // RibbonForm
    {
        public frmMain formMain;

        public Internet(frmMain formMain)
        {
            this.formMain = formMain;
            InitializeComponent();
        }

        private void goButton_Click(object sender, EventArgs e)
        {
            webBrowser1.Navigate(new Uri(comboBox1.SelectedItem.ToString()));
        }

        private void homeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            webBrowser1.GoHome();
        }

        private void goBackToolStripMenuItem_Click(object sender, EventArgs e)
        {
            webBrowser1.GoBack();
        }

        private void goForwardToolStripMenuItem_Click(object sender, EventArgs e)
        {
            webBrowser1.GoForward();
        }

        private void Internet_Load(object sender, EventArgs e)
        {
             
            comboBox1.SelectedIndex = 0;
            webBrowser1.GoHome();
        
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.formMain.formMain.loadUrl(comboBox1.Text);
            this.Close();
        }

        private void Internet_MaximumSizeChanged(object sender, EventArgs e)
        {
         //   webBrowser1
        }

        private void button1_Click_1(object sender, EventArgs e)
        {

            Util.formMain.loadUrl(comboBox1.Text);
        }

    }
}
